﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BookOnline.Data;

namespace BookOnline.Business
{
    public class CatService
    {
        private static CatController obj = new CatController();
        public static List<Cat> getAll()
        {
            return obj.getAll();
        }

        public static List<Cat> getByID(string id)
        {
            return obj.getByID(id);
        }

        public static bool Cat_Add(Cat data)
        {
            return obj.Cat_Add(data);
        }

        public static bool Cat_Update(Cat data)
        {
            return obj.Cat_Update(data);
        }

        public static bool Cat_Delete(string id)
        {
            return obj.Cat_Delete(id);
        }
    }
}
